package org.fastsyncer.manager.listener.mysql.binlog.impl.parser;

import java.io.IOException;

import org.fastsyncer.manager.listener.mysql.binlog.BinlogEventParser;
import org.fastsyncer.manager.listener.mysql.binlog.BinlogEventV4Header;
import org.fastsyncer.manager.listener.mysql.binlog.BinlogParserContext;
import org.fastsyncer.manager.listener.mysql.io.XInputStream;

public final class NopEventParser implements BinlogEventParser {

	public int getEventType() {
		throw new UnsupportedOperationException();
	}

	public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
	throws IOException {
		final int available = is.available();
		is.skip(available);
	}
}
